import time
from selenium import webdriver
browser = webdriver.Chrome()
browser.maximize_window()
browser.get('http://www.xinfadi.com.cn/priceDetail.html')
time.sleep(3)
html_code = browser.page_source
with open(file='html_code.txt', mode='w', encoding='utf-8') as f:
    f.write(html_code)
browser.quit()
